<?php class Technologytypes { 

    /***
     * DB Fields: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $id;

    /***
     * DB Fields: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $name;

    /***
     * DB Fields: priceRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $priceRatio;

    /***
     * DB Fields: order
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $order;

    /***
     * DB Fields: ironPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $ironPrice;

    /***
     * DB Fields: ironProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $ironProduce;

    /***
     * DB Fields: titaniumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titaniumPrice;

    /***
     * DB Fields: titaniumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $titaniumProduce;

    /***
     * DB Fields: iridiumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridiumPrice;

    /***
     * DB Fields: iridiumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $iridiumProduce;

    /***
     * DB Fields: carbonNTPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNTPrice;

    /***
     * DB Fields: carbonNTProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $carbonNTProduce;

    /***
     * DB Fields: hidrogenPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogenPrice;

    /***
     * DB Fields: hidrogenProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hidrogenProduce;

    /***
     * DB Fields: creditsPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $creditsPrice;

    /***
     * DB Fields: creditsProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $creditsProduce;

    /***
     * DB Fields: charLevelRestriction
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $charLevelRestriction;

    /***
     * DB Fields: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $population;

    /***
     * DB Fields: startLevel
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $startLevel;

//--------------- GET METHODS ----------------------------- //
    /***
     * Get value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result id
     **/
    function get_id( ) {
        // returns the value of id
        return $this->id;
    }


    /***
     * Get value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result name
     **/
    function get_name( ) {
        // returns the value of name
        return $this->name;
    }


    /***
     * Get value for field: priceRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result priceRatio
     **/
    function get_priceRatio( ) {
        // returns the value of priceRatio
        return $this->priceRatio;
    }


    /***
     * Get value for field: order
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result order
     **/
    function get_order( ) {
        // returns the value of order
        return $this->order;
    }


    /***
     * Get value for field: ironPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result ironPrice
     **/
    function get_ironPrice( ) {
        // returns the value of ironPrice
        return $this->ironPrice;
    }


    /***
     * Get value for field: ironProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result ironProduce
     **/
    function get_ironProduce( ) {
        // returns the value of ironProduce
        return $this->ironProduce;
    }


    /***
     * Get value for field: titaniumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titaniumPrice
     **/
    function get_titaniumPrice( ) {
        // returns the value of titaniumPrice
        return $this->titaniumPrice;
    }


    /***
     * Get value for field: titaniumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result titaniumProduce
     **/
    function get_titaniumProduce( ) {
        // returns the value of titaniumProduce
        return $this->titaniumProduce;
    }


    /***
     * Get value for field: iridiumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridiumPrice
     **/
    function get_iridiumPrice( ) {
        // returns the value of iridiumPrice
        return $this->iridiumPrice;
    }


    /***
     * Get value for field: iridiumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result iridiumProduce
     **/
    function get_iridiumProduce( ) {
        // returns the value of iridiumProduce
        return $this->iridiumProduce;
    }


    /***
     * Get value for field: carbonNTPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNTPrice
     **/
    function get_carbonNTPrice( ) {
        // returns the value of carbonNTPrice
        return $this->carbonNTPrice;
    }


    /***
     * Get value for field: carbonNTProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result carbonNTProduce
     **/
    function get_carbonNTProduce( ) {
        // returns the value of carbonNTProduce
        return $this->carbonNTProduce;
    }


    /***
     * Get value for field: hidrogenPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogenPrice
     **/
    function get_hidrogenPrice( ) {
        // returns the value of hidrogenPrice
        return $this->hidrogenPrice;
    }


    /***
     * Get value for field: hidrogenProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hidrogenProduce
     **/
    function get_hidrogenProduce( ) {
        // returns the value of hidrogenProduce
        return $this->hidrogenProduce;
    }


    /***
     * Get value for field: creditsPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result creditsPrice
     **/
    function get_creditsPrice( ) {
        // returns the value of creditsPrice
        return $this->creditsPrice;
    }


    /***
     * Get value for field: creditsProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result creditsProduce
     **/
    function get_creditsProduce( ) {
        // returns the value of creditsProduce
        return $this->creditsProduce;
    }


    /***
     * Get value for field: charLevelRestriction
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result charLevelRestriction
     **/
    function get_charLevelRestriction( ) {
        // returns the value of charLevelRestriction
        return $this->charLevelRestriction;
    }


    /***
     * Get value for field: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result population
     **/
    function get_population( ) {
        // returns the value of population
        return $this->population;
    }


    /***
     * Get value for field: startLevel
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result startLevel
     **/
    function get_startLevel( ) {
        // returns the value of startLevel
        return $this->startLevel;
    }


//--------------- SET METHODS ----------------------------- //
    /***
     * Set value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function set_id( $id ) {
        // sets the value of id
        $this->id = $id;
    }

    /***
     * Set value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param name
     * @result void
     **/
    function set_name( $name ) {
        // sets the value of name
        $this->name = $name;
    }

    /***
     * Set value for field: priceRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param priceRatio
     * @result void
     **/
    function set_priceRatio( $priceRatio ) {
        // sets the value of priceRatio
        $this->priceRatio = $priceRatio;
    }

    /***
     * Set value for field: order
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param order
     * @result void
     **/
    function set_order( $order ) {
        // sets the value of order
        $this->order = $order;
    }

    /***
     * Set value for field: ironPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param ironPrice
     * @result void
     **/
    function set_ironPrice( $ironPrice ) {
        // sets the value of ironPrice
        $this->ironPrice = $ironPrice;
    }

    /***
     * Set value for field: ironProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param ironProduce
     * @result void
     **/
    function set_ironProduce( $ironProduce ) {
        // sets the value of ironProduce
        $this->ironProduce = $ironProduce;
    }

    /***
     * Set value for field: titaniumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titaniumPrice
     * @result void
     **/
    function set_titaniumPrice( $titaniumPrice ) {
        // sets the value of titaniumPrice
        $this->titaniumPrice = $titaniumPrice;
    }

    /***
     * Set value for field: titaniumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param titaniumProduce
     * @result void
     **/
    function set_titaniumProduce( $titaniumProduce ) {
        // sets the value of titaniumProduce
        $this->titaniumProduce = $titaniumProduce;
    }

    /***
     * Set value for field: iridiumPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridiumPrice
     * @result void
     **/
    function set_iridiumPrice( $iridiumPrice ) {
        // sets the value of iridiumPrice
        $this->iridiumPrice = $iridiumPrice;
    }

    /***
     * Set value for field: iridiumProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param iridiumProduce
     * @result void
     **/
    function set_iridiumProduce( $iridiumProduce ) {
        // sets the value of iridiumProduce
        $this->iridiumProduce = $iridiumProduce;
    }

    /***
     * Set value for field: carbonNTPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNTPrice
     * @result void
     **/
    function set_carbonNTPrice( $carbonNTPrice ) {
        // sets the value of carbonNTPrice
        $this->carbonNTPrice = $carbonNTPrice;
    }

    /***
     * Set value for field: carbonNTProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param carbonNTProduce
     * @result void
     **/
    function set_carbonNTProduce( $carbonNTProduce ) {
        // sets the value of carbonNTProduce
        $this->carbonNTProduce = $carbonNTProduce;
    }

    /***
     * Set value for field: hidrogenPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogenPrice
     * @result void
     **/
    function set_hidrogenPrice( $hidrogenPrice ) {
        // sets the value of hidrogenPrice
        $this->hidrogenPrice = $hidrogenPrice;
    }

    /***
     * Set value for field: hidrogenProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hidrogenProduce
     * @result void
     **/
    function set_hidrogenProduce( $hidrogenProduce ) {
        // sets the value of hidrogenProduce
        $this->hidrogenProduce = $hidrogenProduce;
    }

    /***
     * Set value for field: creditsPrice
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param creditsPrice
     * @result void
     **/
    function set_creditsPrice( $creditsPrice ) {
        // sets the value of creditsPrice
        $this->creditsPrice = $creditsPrice;
    }

    /***
     * Set value for field: creditsProduce
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param creditsProduce
     * @result void
     **/
    function set_creditsProduce( $creditsProduce ) {
        // sets the value of creditsProduce
        $this->creditsProduce = $creditsProduce;
    }

    /***
     * Set value for field: charLevelRestriction
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param charLevelRestriction
     * @result void
     **/
    function set_charLevelRestriction( $charLevelRestriction ) {
        // sets the value of charLevelRestriction
        $this->charLevelRestriction = $charLevelRestriction;
    }

    /***
     * Set value for field: population
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param population
     * @result void
     **/
    function set_population( $population ) {
        // sets the value of population
        $this->population = $population;
    }

    /***
     * Set value for field: startLevel
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param startLevel
     * @result void
     **/
    function set_startLevel( $startLevel ) {
        // sets the value of startLevel
        $this->startLevel = $startLevel;
    }

//--------------- CRUD METHODS ----------------------------- //
    /***
     * Create a new Record: technologytypes
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param name
     * @param priceRatio
     * @param order
     * @param ironPrice
     * @param ironProduce
     * @param titaniumPrice
     * @param titaniumProduce
     * @param iridiumPrice
     * @param iridiumProduce
     * @param carbonNTPrice
     * @param carbonNTProduce
     * @param hidrogenPrice
     * @param hidrogenProduce
     * @param creditsPrice
     * @param creditsProduce
     * @param charLevelRestriction
     * @param population
     * @param startLevel
     * @result void
     **/
    function createnew_technologytypes( $id, $name, $priceRatio, $order, $ironPrice, $ironProduce, $titaniumPrice, $titaniumProduce, $iridiumPrice, $iridiumProduce, $carbonNTPrice, $carbonNTProduce, $hidrogenPrice, $hidrogenProduce, $creditsPrice, $creditsProduce, $charLevelRestriction, $population, $startLevel ) {

        // items to be inserted in the database 
        $_obj = array($id,
                      $name,
                      $priceRatio,
                      $order,
                      $ironPrice,
                      $ironProduce,
                      $titaniumPrice,
                      $titaniumProduce,
                      $iridiumPrice,
                      $iridiumProduce,
                      $carbonNTPrice,
                      $carbonNTProduce,
                      $hidrogenPrice,
                      $hidrogenProduce,
                      $creditsPrice,
                      $creditsProduce,
                      $charLevelRestriction,
                      $population,
                      $startLevel); 

        // database object connection
        $dbConn = $GLOBALS['dbConn'];

        // perform insert in the database
        $dbConn->insert("technologytypes", $_obj);
    }

    /***
     * Retrived an existing record: technologytypes
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result new Technologytypes
     **/
    function get_technologytypes( $id ) {

        // retrive the data
        $dbConn = $GLOBALS['dbConn'];

        // retrieved value in the database
        $_resultSet = $dbConn->doQuery("SELECT * FROM technologytypes WHERE id = '$id'");

        $__technologytypesObj = new technologytypes();
        // return the retrived from the database

        // create a new object
        $__obj = new Technologytypes();
        $__obj->set_id($_resultSet[0]['id']);
        $__obj->set_name($_resultSet[0]['name']);
        $__obj->set_priceRatio($_resultSet[0]['priceRatio']);
        $__obj->set_order($_resultSet[0]['order']);
        $__obj->set_ironPrice($_resultSet[0]['ironPrice']);
        $__obj->set_ironProduce($_resultSet[0]['ironProduce']);
        $__obj->set_titaniumPrice($_resultSet[0]['titaniumPrice']);
        $__obj->set_titaniumProduce($_resultSet[0]['titaniumProduce']);
        $__obj->set_iridiumPrice($_resultSet[0]['iridiumPrice']);
        $__obj->set_iridiumProduce($_resultSet[0]['iridiumProduce']);
        $__obj->set_carbonNTPrice($_resultSet[0]['carbonNTPrice']);
        $__obj->set_carbonNTProduce($_resultSet[0]['carbonNTProduce']);
        $__obj->set_hidrogenPrice($_resultSet[0]['hidrogenPrice']);
        $__obj->set_hidrogenProduce($_resultSet[0]['hidrogenProduce']);
        $__obj->set_creditsPrice($_resultSet[0]['creditsPrice']);
        $__obj->set_creditsProduce($_resultSet[0]['creditsProduce']);
        $__obj->set_charLevelRestriction($_resultSet[0]['charLevelRestriction']);
        $__obj->set_population($_resultSet[0]['population']);
        $__obj->set_startLevel($_resultSet[0]['startLevel']);


        return $__obj;
    }

    /***
     * Update an existing record: technologytypes
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param itemsToBeUpdated = array()
     * @result void
     **/
    function update_technologytypes( $id, $itemsToBeUpdated = array() ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs update in the database
         foreach($itemsToBeUpdated as $_fName => $_fVal) { 
               $dbConn->addValuePair($_fName, $_fVal);
         }

         // perform update operation
         $dbConn->update("technologytypes", "id = '$id'");
    }

    /***
     * Delete an existing record: technologytypes
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function delete_technologytypes( $id ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs deletion of data
         $dbConn->delete("technologytypes", "id = '$id'");
    }

    /***
     * Retrived list of objects base on a given parameters: technologytypes
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param conditionalStatement = ''
     * @result collection of objects: Technologytypes
     **/
    function list_technologytypes( $conditionalStatement = '' ) {

         $dbConn = $GLOBALS['dbConn'];
         // check if there is a given parameter list
         if(!empty($conditionalStatement)) { 
              $sqlStatement = "SELECT * FROM technologytypes WHERE $conditionalStatement"; 
         } else { 
              $sqlStatement = "SELECT * FROM technologytypes";
         }

         // retrieve the values base on the query result
         $__resObj = $dbConn->doQuery($sqlStatement);

         $__collectionOfObjects = array();
         foreach($__resObj as $__rs) { 
            $__newObj = new Technologytypes();

            $__newObj->set_id($__rs['id']);
            $__newObj->set_name($__rs['name']);
            $__newObj->set_priceRatio($__rs['priceRatio']);
            $__newObj->set_order($__rs['order']);
            $__newObj->set_ironPrice($__rs['ironPrice']);
            $__newObj->set_ironProduce($__rs['ironProduce']);
            $__newObj->set_titaniumPrice($__rs['titaniumPrice']);
            $__newObj->set_titaniumProduce($__rs['titaniumProduce']);
            $__newObj->set_iridiumPrice($__rs['iridiumPrice']);
            $__newObj->set_iridiumProduce($__rs['iridiumProduce']);
            $__newObj->set_carbonNTPrice($__rs['carbonNTPrice']);
            $__newObj->set_carbonNTProduce($__rs['carbonNTProduce']);
            $__newObj->set_hidrogenPrice($__rs['hidrogenPrice']);
            $__newObj->set_hidrogenProduce($__rs['hidrogenProduce']);
            $__newObj->set_creditsPrice($__rs['creditsPrice']);
            $__newObj->set_creditsProduce($__rs['creditsProduce']);
            $__newObj->set_charLevelRestriction($__rs['charLevelRestriction']);
            $__newObj->set_population($__rs['population']);
            $__newObj->set_startLevel($__rs['startLevel']);

            // add object to collection 
            array_push($__collectionOfObjects, $__newObj);
         }

         // return collection of objects
         return $__collectionOfObjects;
    }

} ?>